//
//  YFMySendedGiftCell.m
//  project
//
//  Created by yefei on 2019/4/16.
//  Copyright © 2019 健健. All rights reserved.
//

#import "YFMySendedGiftCell.h"
#import "YFMySendedGiftsModel.h"


@interface YFMySendedGiftCell ()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIImageView *giftImageView;
@property (weak, nonatomic) IBOutlet UILabel *countLabel;
@property (weak, nonatomic) IBOutlet UILabel *giftNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UIView *giftContentView;

@end


@implementation YFMySendedGiftCell

- (void)setModel:(YFMySendedGiftModel *)model {
    _model = model;
    self.nameLabel.text = model.user.nickName;
    [self.giftImageView sd_setImageWithURL:model.gitImageURL placeholderImage:nil];
    self.countLabel.text = [NSString stringWithFormat:@"X%@", model.amount];
    self.giftNameLabel.text = model.name;
    self.timeLabel.text = model.giftTime;
}

- (void)awakeFromNib
{
    [super awakeFromNib];
    [self setupViews];
}

- (void)setupViews
{
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    [self.giftContentView rounded:(UIRectCornerAllCorners) radius:10];
}



@end
